
function isValideBytes(form, formName) {

	if (form.getAttribute("MAXBYTE") != null && form.value != "") {
		var len = 0;
		for(j=0; j<form.value.length; j++) {
			var str = form.value.charAt(j);
			len += (str.charCodeAt() > 128) ? 2 : 1
		}
		if (len > parseInt(form.getAttribute("MAXBYTE"))) {
			maxbyte = form.getAttribute("MAXBYTE");
			alert("["+formName+"] 은(는) "+form.getAttribute("MAXBYTE")+"byte까지만 입력가능합니다.");
			form.focus();
			return false;
		}
	}
	return true;
}

